$(function() {
  //   console.log(11);
  let couponid = location.search.split('id=')[1][0];
  $.ajax({
    url: 'http://localhost:3000/api/getcouponproduct',
    data: { couponid },
    success(res) {
      console.log(res);
      $('.pro-list').html(template('tmp', res));
    }
  });
});
